export const routes = [
  {
    path: '/',
    component: '@/pages/Welcome',
    name: '主页',
    icon: 'HomeOutlined',
  },
  {
    path: '/user',
    name: '用户管理',
    icon: 'UserOutlined',
    routes: [
      {
        path: '/user/list',
        component: '@/pages/UserManager/UserList',
        name: '用户列表',
        icon: 'AppstoreOutlined',
      },
    ],
  },
  {
    path: '/root',
    name: '权限管理',
    icon: 'SmileOutlined',
    routes: [
      {
        path: '/root/juese',
        component: '@/pages/RootManager/JueseList',
        name: '角色列表',
        icon: 'AppstoreOutlined',
      },
      {
        path: '/root/list',
        component: '@/pages/RootManager/RootList',
        name: '权限列表',
      },
    ],
  },
  {
    path: '/good',
    name: '商品管理',
    icon: 'LikeOutlined',
    routes: [
      {
        path: '/good/list',
        component: '@/pages/GoodManager/GoodList',
        name: '商品列表',
      },
      {
        path: '/good/argu',
        component: '@/pages/GooDManager/CateArgu',
        name: '分类参数',
      },
      {
        path: '/good/cate',
        component: '@/pages/GooDManager/GoodCate',
        name: '商品分类',
      },
    ],
  },
  {
    path: '/order',
    name: '订单管理',
    icon: 'MoneyCollectOutlined',
    routes: [
      {
        path: '/order/li¡st',
        component: '@/pages/OrderManager/OrderList',
        name: '订单列表',
      },
    ],
  },
  {
    path: '/data',
    name: '数据统计',
    icon: 'LineChartOutlined',
    routes: [
      {
        path: '/data/list',
        component: '@/pages/DataManager/DataTable',
        name: '数据报表',
      },
    ],
  },
  {
    path: '/login',
    component: '@/pages/Login',
    headerRender: false,
    // 不展示页脚
    footerRender: false,
    // 不展示菜单
    menuRender: false,
  },
  {
    component: '@/pages//NotFound',
  },
];
